package com.ftg.shopping.financeinfo.controller;

import com.ftg.shopping.config.LayuiPage;
import com.ftg.shopping.financeinfo.entity.SpFinanceinfo;
import com.ftg.shopping.financeinfo.service.FinanceinfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api(description = "财务")
@RestController
@RequestMapping("/api/caiwu")
public class FinanceinfoController {

    @Autowired
    FinanceinfoService financeinfoService;

    @ApiOperation("layui分页查询带模糊")
    @GetMapping("/page2")
    public LayuiPage<SpFinanceinfo> page2(@RequestParam int page, @RequestParam int limit, @RequestParam(required = false) String dname){
        return financeinfoService.layuipage(page,limit,dname);

    }




}
